#include <stdio.h>

class Person {
private:
    char *name;
    int age;
    char *work;

public:
    void setName(char *name) {
        this->name = name;
    }

    void setAge(int age) {
        this->age = age;
    }

    void setWork(char *work) {
        work = work;
    }

    void printInfo(void) {
        printf("name = %s, age = %d, work = %s\n", name, age, work);
    }
};

int main(int argc, char **argv)
{
    Person per;

    per.setName("zhangsan");
    per.setAge(16);
    per.setWork("teacher");
    per.printInfo();

    return 0;
}